package com.ruoyi.parking.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小区车辆对象 cm_car
 *
 * @author HuangRong
 * @date 2023-05-11
 */
public class Car extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long carId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carName;

    /** 车身颜色 */
    @Excel(name = "车身颜色")
    private String carColor;

    /** 业主 */
    @Excel(name = "业主")
    private Long ownerId;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private String carType;

    /** 停车位 */
    @Excel(name = "停车位")
    private Long parkingSpaceId;

    /** 小区 */
    @Excel(name = "小区")
    private Long communityId;

    public void setCarId(Long carId)
    {
        this.carId = carId;
    }

    public Long getCarId()
    {
        return carId;
    }
    public void setCarName(String carName)
    {
        this.carName = carName;
    }

    public String getCarName()
    {
        return carName;
    }
    public void setCarColor(String carColor)
    {
        this.carColor = carColor;
    }

    public String getCarColor()
    {
        return carColor;
    }
    public void setOwnerId(Long ownerId)
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId()
    {
        return ownerId;
    }
    public void setCarType(String carType)
    {
        this.carType = carType;
    }

    public String getCarType()
    {
        return carType;
    }
    public void setParkingSpaceId(Long parkingSpaceId)
    {
        this.parkingSpaceId = parkingSpaceId;
    }

    public Long getParkingSpaceId()
    {
        return parkingSpaceId;
    }
    public void setCommunityId(Long communityId)
    {
        this.communityId = communityId;
    }

    public Long getCommunityId()
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("carId", getCarId())
                .append("carName", getCarName())
                .append("carColor", getCarColor())
                .append("ownerId", getOwnerId())
                .append("carType", getCarType())
                .append("parkingSpaceId", getParkingSpaceId())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("communityId", getCommunityId())
                .toString();
    }
}
